package com.ziq.zcamp.bean.coupon

import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class MoneyOffWayInfo : ProguardKeep, Serializable {
    //可抵用xx，单位：分
    var discount_money :Int? = null
    //订单金额满xx，单位：分
    var full_money : Int? = null


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as MoneyOffWayInfo

        if (discount_money != other.discount_money) return false
        if (full_money != other.full_money) return false

        return true
    }

    override fun hashCode(): Int {
        var result = discount_money ?: 0
        result = 31 * result + (full_money ?: 0)
        return result
    }

}